<?php
class mcz_PlaylistTune extends mcz_Object
{
	protected $fields = array(
		'id'          => array('cast' => 'integer'),
		'playlist_id' => array('cast' => 'integer', 'notblank' => true),
		'tune_id'     => array('cast' => 'integer', 'notblank' => true)
	);

	public static function clean($playlist_id)
	{
		self::dbh()->exec('delete from ' . get_class()
						  . ' where playlist_id = ' . (int)$perm_id);
	}
}